/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.persistence.brokersInterface;

import java.util.List;
import systole.domain.persons.identityCard.IdentityCardType;
import systole.exceptions.ExceptionDAO;

/**
 *
 * @author jmj
 */
public interface IdentityCardBroker {

    /**
     * @return all identity card type
     * @throws ExceptionDAO 
     */
    public List<IdentityCardType> getAllIdentityCardTypes() throws ExceptionDAO;

    /**
     * 
     * @param cardType
     * @throws ExceptionDAO
     */
    public void save(IdentityCardType cardType) throws ExceptionDAO;

    /**
     * 
     * @param description
     * @return
     * @throws ExceptionDAO
     */
    public IdentityCardType getIdentityCardTypeByName(String description) throws ExceptionDAO;
}
